/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.tests;

import br.ufba.lasid.ds.fd.FailureDetector;

/**
 *
 * @author aliriosa
 */
public class TFailureDetector {
    public static void main(String[] args) throws Exception{
        
        FailureDetector detector = new FailureDetector();
        
        detector.register(args[0], true);
        detector.register(args[1], false);
        
        detector.buildup();
        
        detector.setPeriod(1000L);
        detector.setTimeout(200L);
        
        detector.startup();
        
    }
}
